<%@page import="beautiful.butterfly.distributed_task_processing_engine.task_manage.DistributedTaskProcessingEngine" %>
<%@page import="java.io.StringWriter" %>
<%@ page contentType="text/html; charset=GB2312" %>
<%
    if (DistributedTaskProcessingEngine.isInitial() == false)
    {
        response.sendRedirect("config.jsp");
    }
%>
<html>
<body style="font-size:12px;">
<%
    String path = request.getParameter("path");
    if (path == null)
    {
        path = DistributedTaskProcessingEngine.getJvmInstanceInfoAndTaskProcessorUserDefinitionManager().getRootPath();
    }
    StringWriter writer = new StringWriter();
    DistributedTaskProcessingEngine.getJvmInstanceInfoAndTaskProcessorUserDefinitionManager().printTreeInWay(
            path, writer, "<br/>");
%>
<pre>
<%=writer.getBuffer().toString()%>
</pre>
</body>
</html>
